package com.sh4.service.impl;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.sh4.dao.UserRegisterDao;
import com.sh4.entity.User;
import com.sh4.service.UserRegisteService;

@Service
public class UserRegisteServiceImpl implements UserRegisteService {

	@Autowired
	UserRegisterDao userDao;
	
	@Override
	public void saveUser(User user) {
		
		userDao.saveUser(user);
		
	}

	@Override
	public User findUser(String username) {
		return userDao.findUser(username);
	}

	@Override
	public int outLogin(String userCode) {
		// TODO Auto-generated method stub
		
		return 0;
	}

	@Override
	public Map<String, Object> getUserInfo(String userCode, String roleId) {
		
		return userDao.getUserInfo(userCode, roleId);
	}


}
